package com.snailhd.util;

import com.snailhd.entity.Stock;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @author hd
 * @description
 * @date 2019-12-01 14:13
 */
public class StocklUtil {

    public static String[] getSymbols(List<Stock> list){
        String[] arr = new String[list.size()];
        return list.stream().map(Stock::getSymbol).collect(Collectors.toList()).toArray(arr);
    }

}
